package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "group_member",comment = "聊天群组成员表")
public class GroupMember {
    @AcColumn(name = "id",comment = "群成员ID",type = ColumnTypeEnums.INT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "group_id",defaultValue = "0",comment = "群ID",type = ColumnTypeEnums.INT)
    private Integer group_id;

    @AcColumn(name = "user_id",defaultValue = "0",comment = "用户ID",type = ColumnTypeEnums.INT)
    private Integer user_id;

    @AcColumn(name = "leader",defaultValue = "0",comment = "成员属性[0:普通成员;1:管理员;2:群主;]",type = ColumnTypeEnums.TINYINT)
    private Integer leader;

    @AcColumn(name = "is_mute",defaultValue = "0",comment = "是否禁言[0:否;1:是;]",type = ColumnTypeEnums.TINYINT)
    private Integer is_mute;

    @AcColumn(name = "is_quit",defaultValue = "0",comment = "是否退群[0:否;1:是;]",type = ColumnTypeEnums.TINYINT)
    private Integer is_quit;

    @AcColumn(name = "user_card", defaultValue = "", comment = "群名片", type = ColumnTypeEnums.VARCHAR,length = 30, isNull = false)
    private String user_card;

    @AcColumn(name = "created_at", comment = "入群时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime createdAt;

    @AcColumn(name = "updated_at", comment = "更新时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime updatedAt;

    @AcColumn(name = "deleted_at", comment = "退群时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime deleted_at;
}
